﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MngPermission.aspx.cs"
    Inherits="LDSP.UI.Admin.MngPermission" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <link type="text/css" href="../../Styles/bg.css" rel="Stylesheet" />
    <script type="text/javascript" src="../../Scripts/jquery-1.4.1.js"></script>
    <script type="text/javascript" src="../../Scripts/jqex.js"></script>
    <script type="text/javascript" src="../../Scripts/Common.js"></script>
    <script type="text/javascript" src="../../Scripts/calendar.js"></script>
    <title>管理员栏目权限</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div class="mngTitle">
            <span class="mngEmphasis">管理员栏目权限</span>
        </div>
        <table style="width: 100%">
            <tr>
                <td valign="top" style="width: 60%">
                    <fieldset>
                        <legend>查询</legend>
                        <table id="filterArea" class="mngDetail">
                            <tr>
                                <td class="itemLabel">
                                    管理员名称：
                                </td>
                                <td class="itemValue">
                                    <asp:TextBox ID="txt_name" runat="server" CssClass="itemCtrl"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="itemLabel">
                                </td>
                                <td class="itemValue">
                                    <asp:Button ID="btn_search" runat="server" Text="搜索" OnClick="btn_search_Click" CssClass="mngBtn" />&nbsp;
                                    <input type="button" value="重置" onclick="resetFilterCondition('filterArea')" class="mngBtn" />
                                </td>
                            </tr>
                        </table>
                    </fieldset>
                    <div class="mngList">
                        <asp:GridView ID="grd_list" runat="server" AutoGenerateColumns="False" EmptyDataText="当前没有查到任何数据！"
                            DataKeyNames="id" OnRowCommand="grd_list_RowCommand" OnRowDataBound="grd_list_RowDataBound"
                            BackColor="#666699" BorderColor="#999999" AllowPaging="True" AllowSorting="True"
                            CellPadding="3" GridLines="Vertical" Width="100%" OnPageIndexChanging="grd_list_PageIndexChanging"
                            OnSorting="grd_list_Sorting">
                            <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
                            <RowStyle BackColor="#EEEEEE" ForeColor="Black" BorderStyle="Solid" BorderWidth="1px" />
                            <EmptyDataRowStyle BorderStyle="None" BorderWidth="0px" Font-Bold="True" Font-Size="16pt"
                                ForeColor="white" />
                            <Columns>
                                <asp:TemplateField Visible="False">
                                    <HeaderTemplate>
                                        <asp:CheckBox ID="chb_selectAll" runat="server" onclick="selectAll(this,'grd_list')" />
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <asp:CheckBox ID="chb" runat="server" />
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" Width="40px" />
                                </asp:TemplateField>
                                <asp:BoundField HeaderText="序号" ItemStyle-Width="40px" ItemStyle-HorizontalAlign="Center">
                                    <ItemStyle HorizontalAlign="Center" Width="40px"></ItemStyle>
                                </asp:BoundField>
                                <asp:BoundField DataField="code" HeaderText="管理员名称" SortExpression="code" ItemStyle-Width="100px">
                                    <ItemStyle Width="150px"></ItemStyle>
                                </asp:BoundField>
                                <asp:BoundField DataField="module" HeaderText="授权的模块" SortExpression="module" />
                                <asp:TemplateField HeaderText="授权信息" ShowHeader="False">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandArgument='<%# Eval("id") %>'
                                            CommandName="viewItem" Text="查看"></asp:LinkButton>
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" Width="60px" />
                                </asp:TemplateField>
                            </Columns>
                            <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#FF9999" Font-Bold="True" ForeColor="White" />
                            <HeaderStyle CssClass="gridlisthead" ForeColor="White" />
                            <AlternatingRowStyle BackColor="#DCDCDC" />
                        </asp:GridView>
                    </div>
                </td>
                <td style="width: 20px;">
                </td>
                <td valign="top">
                    <div class="mngTitle">
                        <asp:Label ID="lbl_sysUser" runat="server" Text=""></asp:Label><span class="mngEmphasis">模块授权：</span>
                    </div>
                    <asp:CheckBoxList ID="cbl_modules" runat="server">
                    </asp:CheckBoxList>
                    <asp:Button ID="btn_ok_module" runat="server" Text="确定" OnClick="btn_ok_module_Click"
                        CssClass="mngBtn" />
                    <div class="mngTitle">
                        <asp:Label ID="lbl_enterprise" runat="server" Text=""></asp:Label><span class="mngEmphasis">系统栏目授权：</span>
                    </div>
                    <asp:TreeView ID="tre_obj" runat="server" BorderColor="#CCCCCC" BorderStyle="Dashed"
                        BorderWidth="1px" ShowCheckBoxes="All" ShowLines="True" Width="99%">
                        <SelectedNodeStyle BackColor="#999999" Font-Bold="True" />
                    </asp:TreeView>
                    <div class="mngList">
                        <asp:Button ID="btn_ok" runat="server" Text="确定" OnClick="btn_ok_Click" CssClass="mngBtn" /></div>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
